package cn.tedu.mybatis.mapper;

import cn.tedu.mybatis.pojo.Comment;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface CommentMapper {
    int insert(Comment comment);
    /**
     * 基于文章id查询文章下的评论
     * @param articleId
     * @return
     */
    List<Comment> selectCommentsByArticleId(Long articleId);

}
